/*
 * Copyright (C) 2023 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import I18n from '@ohos.i18n'
import Intl from '@ohos.intl'
import deviceInfo from '@ohos.deviceInfo'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect, Level} from '@ohos/hypium'

export default function DateTimeFormatInIntlTest() {
describe('DateTimeFormatInIntlTest', function () {
    console.log('*************start DateTimeFormatInIntlTest*************');

    let hour = I18n.System.is24HourClock();
    console.log('init 24 hour clock value ' + hour);

    /* *
    * execute this step before all testcases
    */
    beforeAll(function(){
        console.log('step before all cases in I18n.'
        + ' 24hour: ' + I18n.System.is24HourClock()
        + ' prelang: ' + I18n.System.getPreferredLanguageList()
        + ' syslocale: ' + I18n.System.getSystemLocale());
    })

    /* *
    * execute this step before every testcase
    */
    beforeEach(function(){
        console.log('step before every case in I18n.');
    })

    /* *
    * execute this step after every testcase
    */
    afterEach(function(){
        console.log('step after every case in I18n.');
    })

    /* *
    * execute this step after all testcases
    */
    afterAll(function(){
        console.log('step after all cases in I18n.'
        + ' 24hour: ' + I18n.System.is24HourClock()
        + ' prelang: ' + I18n.System.getPreferredLanguageList()
        + ' syslocale: ' + I18n.System.getSystemLocale());
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0100
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0100
     * @tc.desc   check the datetime is not null
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL0
     */
    it('dateTimeFormat_test_0100', Level.LEVEL0, function () {
        let datefmt = new Intl.DateTimeFormat('en-GB');
        expect(datefmt !== null).assertTrue();
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0120
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0120
     * @tc.desc   check the datetime is not null
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0120', Level.LEVEL2, function () {
        let datefmt = new Intl.DateTimeFormat();
        expect(datefmt !== null).assertTrue();
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0200
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0200
     * @tc.desc   check the date
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0200', Level.LEVEL2, function () {
        let date = new Date(2021, 11, 17, 3, 24, 0);
        let datefmt = new Intl.DateTimeFormat('zh');
        console.log('dateTimeFormat_test_0200 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('2021');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0220
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0220
     * @tc.desc   check the date
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0220', Level.LEVEL2, function () {
        let date = new Date(2021, 11, 17, 3, 24, 0);
        let datefmt = new Intl.DateTimeFormat('zh', undefined);
        console.log('dateTimeFormat_test_0220 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('2021');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0240
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0240
     * @tc.desc   check the date
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0240', Level.LEVEL2, function () {
        let date = new Date(2021, 11, 17, 3, 24, 0);
        let datefmt = new Intl.DateTimeFormat('zh', null);
        console.log('dateTimeFormat_test_0240 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('2021');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0300
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0300
     * @tc.desc   check the date
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0300', Level.LEVEL2, function () {
        let date = new Date(2021, 11, 17, 3, 24, 0);
        let datefmt = new Intl.DateTimeFormat('en');
        console.log('dateTimeFormat_test_0300 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('21');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0310
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0310
     * @tc.desc   check the date
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0310', Level.LEVEL2, function () {
        let date = new Date(2021, 11, 17, 3, 24, 0);
        let datefmt = new Intl.DateTimeFormat('en-US');
        console.log('dateTimeFormat_test_0310 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('21');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0320
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0320
     * @tc.desc   check the date
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0320', Level.LEVEL2, function () {
        let date = new Date(2021, 11, 17, 3, 24, 0);
        let datefmt = new Intl.DateTimeFormat('en-GB');
        console.log('dateTimeFormat_test_0320 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('2021');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0400
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0400
     * @tc.desc   check the date
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0400', Level.LEVEL2, function () {
        let date = new Date(2021, 11, 17, 3, 24, 0);
        let datefmt = new Intl.DateTimeFormat('aa');
        let value = datefmt.format(date);
        console.log('dateTimeFormat_test_0400 ' + value);
        expect(value).assertInstanceOf('String');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0500
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0500
     * @tc.desc   check the hour with ban and zh locale
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0500', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'full' };
        let datefmt = new Intl.DateTimeFormat(['ban', 'zh'], option);
        console.log('dateTimeFormat_test_0500 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertEqual('2020年12月20日星期日');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0600
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0600
     * @tc.desc   check the hour with en and zh locale
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0600', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'full' };
        let datefmt = new Intl.DateTimeFormat(['en', 'zh'], option);
        console.log('dateTimeFormat_test_0600 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertEqual('Sunday, December 20, 2020');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0700
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0700
     * @tc.desc   check the hour with en and ban locale
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0700', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'full' };
        let datefmt = new Intl.DateTimeFormat(['en', 'ban'], option);
        console.log('dateTimeFormat_test_0700 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertEqual('Sunday, December 20, 2020');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0800
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0800
     * @tc.desc   check the hour without correct locale
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0800', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'full' };
        let datefmt = new Intl.DateTimeFormat(['abc', 'ban'], option);
        console.log('dateTimeFormat_test_0800 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('2020');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_0900
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_0900
     * @tc.desc   check the date with full datestyle and mediu timestyle
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_0900', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'full', timeStyle: 'full' };
        let datefmt = new Intl.DateTimeFormat('zh-Hans-CN', option);
        console.log('dateTimeFormat_test_0900 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('2020年12月20日星期日');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1000
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1000
     * @tc.desc   check the dateStyle with long style
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1000', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'long', timeStyle: 'long' };
        let datefmt = new Intl.DateTimeFormat('zh-CN', option);
        console.log('dateTimeFormat_test_1000 ' + datefmt.resolvedOptions().dateStyle);
        expect(datefmt.resolvedOptions().dateStyle).assertEqual('long');
        expect(datefmt.format(date)).assertContain('2020年12月20日');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1100
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1100
     * @tc.desc   check the dateStyle with medium style
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1100', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'medium', timeStyle: 'medium' };
        let datefmt = new Intl.DateTimeFormat('zh-CN', option);
        console.log('dateTimeFormat_test_1100 ' + datefmt.resolvedOptions().dateStyle);
        expect(datefmt.resolvedOptions().dateStyle).assertEqual('medium');
        expect(datefmt.format(date)).assertContain('2020年12月20日');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1200
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1200
     * @tc.desc   check the dateStyle with short style
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1200', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'short', timeStyle: 'short' };
        let datefmt = new Intl.DateTimeFormat('zh-CN', option);
        console.log('dateTimeFormat_test_1200 ' + datefmt.resolvedOptions().dateStyle);
        expect(datefmt.resolvedOptions().dateStyle).assertEqual('short');
        expect(datefmt.format(date)).assertContain('2020/12/20');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1300
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1300
     * @tc.desc   check the daterange
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1300', Level.LEVEL2, function () {
        let startdate = new Date(2020, 11, 20, 14, 23, 16);
        let enddate = new Date(2020, 11, 21, 14, 23, 16);
        let datefmt = new Intl.DateTimeFormat('en-GB', {
            dateStyle: 'full'
        });
        console.log('dateTimeFormat_test_1300 ' + datefmt.formatRange(startdate, enddate));
        expect(datefmt.formatRange(startdate, enddate)).assertEqual('Sunday, 20 – Monday, 21 December 2020');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1400
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1400
     * @tc.desc   check the daterange when the start and end date is equal.
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1400', Level.LEVEL2, function () {
        let startdate = new Date(2020, 11, 20, 14, 23, 16);
        let enddate = new Date(2020, 11, 20, 14, 23, 16);
        let datefmt = new Intl.DateTimeFormat('en-GB', {
            dateStyle: 'full'
        });
        console.log('dateTimeFormat_test_1400 ' + datefmt.formatRange(startdate, enddate));
        expect(datefmt.formatRange(startdate, enddate)).assertEqual('Sunday, 20 December 2020');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1500
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1500
     * @tc.desc   check the year、month、day、weekday
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1500', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' };
        let datefmt = new Intl.DateTimeFormat('ja', option);
        console.log('dateTimeFormat_test_1500 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertEqual('2020年12月20日日曜日');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1600
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1600
     * @tc.desc   check the timerange with year、month、day、weekday
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1600', Level.LEVEL2, function () {
        let startdate = new Date(2020, 11, 20, 14, 23, 16);
        let enddate = new Date(2021, 4, 5, 10, 5, 3);
        let option = { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' };
        let datefmt = new Intl.DateTimeFormat('en', option);
        console.log('dateTimeFormat_test_1600 ' + datefmt.formatRange(startdate, enddate));
        expect(datefmt.formatRange(startdate, enddate)).assertEqual('Sunday, December 20, 2020 – Wednesday, May 5, 2021');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1700
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1700
     * @tc.desc   check the hour&minute&second
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1700', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { year: 'numeric', month: 'long', day: 'numeric',
            hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        console.log('dateTimeFormat_test_1700 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertContain('公元2020年12月20日星期日');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1800
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1800
     * @tc.desc   check the timeZone
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1800', Level.LEVEL2, function () {
        let date = new Date(2020, 3, 14, 15, 5, 3);
        let option = { timeZone: 'America/Los_Angeles', timeZoneName: 'long' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        console.log('dateTimeFormat_test_1800 ' + datefmt.format(date));
        expect(datefmt.format(date).indexOf('北美太平洋夏令时间') !== -1).assertTrue();
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_1900
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_1900
     * @tc.desc   check the America/Los_Angeles timeZone
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_1900', Level.LEVEL2, function () {
        let option = { timeZone: 'America/Los_Angeles', timeZoneName: 'long' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        console.log('dateTimeFormat_test_1900 ' + datefmt.resolvedOptions().timeZone);
        expect(datefmt.resolvedOptions().timeZone).assertEqual('America/Los_Angeles');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_2000
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_2000
     * @tc.desc   check the America/Los_Angeles timeZoneName
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_2000', Level.LEVEL2, function () {
        let option = { timeZone: 'America/Los_Angeles', timeZoneName: 'long' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        console.log('dateTimeFormat_test_2000 ' + datefmt.resolvedOptions().timeZoneName);
        expect(datefmt.resolvedOptions().timeZoneName).assertEqual('long');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_2100
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_2100
     * @tc.desc   check the year
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_2100', Level.LEVEL2, function () {
        let option = { year: 'numeric', month: 'long', day: 'numeric',
            hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        console.log('dateTimeFormat_test_2100 ' + datefmt.resolvedOptions().year);
        expect(datefmt.resolvedOptions().year).assertEqual('numeric');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_2200
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_2200
     * @tc.desc   check the weekday
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_2200', Level.LEVEL2, function () {
        let option = { year: 'numeric', month: 'long', day: 'numeric',
            hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        console.log('dateTimeFormat_test_2200 ' + datefmt.resolvedOptions().weekday);
        expect(datefmt.resolvedOptions().weekday).assertEqual('long');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_2300
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_2300
     * @tc.desc   check the hour in zh-CN-u-hc-h12
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_2300', Level.LEVEL2, function () {
        let option = { year: 'numeric', month: 'long', day: 'numeric',
            hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        console.log('dateTimeFormat_test_2300 ' + datefmt.resolvedOptions().hour);
        expect(datefmt.resolvedOptions().hour).assertEqual('numeric');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_2400
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_2400
     * @tc.desc   check the hour in fr-Latn-FR-u-nu-mong
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_2400', Level.LEVEL2, function () {
        let date = new Date(2020, 11, 20, 14, 23, 16);
        let option = { dateStyle: 'full' };
        let datefmt = new Intl.DateTimeFormat('fr-Latn-FR-u-nu-mong', option);
        console.log('dateTimeFormat_test_2400 ' + datefmt.format(date));
        expect(datefmt.format(date)).assertEqual('dimanche ᠒᠐ décembre ᠒᠐᠒᠐');
    })

    /**
     * @generated.time 2025-11-09 20:49:57
     * @tc.name   dateTimeFormat_test_2500
     * @tc.number SUB_GLOBAL_INTL_JS_DATETIME_2500
     * @tc.desc   check the hour in zh-CN-u-hc-h12 with matcher
     * @tc.type   FUNCTION
     * @tc.size   MEDIUMTEST
     * @tc.level  LEVEL2
     */
    it('dateTimeFormat_test_2500', Level.LEVEL2, function () {
        let option = { year: 'numeric', month: 'long', day: 'numeric',
            hour: 'numeric', minute: '2-digit', second: 'numeric', weekday: 'long', era: 'short',
            hourCycle: 'h24',numberingSystem: 'arab', hour12: true, dayPeriod: 'short',
            formatMatcher: 'basic', localeMatcher: 'lookup' };
        let datefmt = new Intl.DateTimeFormat('zh-CN-u-hc-h12', option);
        expect(datefmt.resolvedOptions().locale).assertEqual('zh-CN');
        expect(datefmt.resolvedOptions().hourCycle).assertEqual('h24');
        expect(datefmt.resolvedOptions().numberingSystem).assertEqual('arab');
        expect(datefmt.resolvedOptions().hour12).assertTrue();
        expect(datefmt.resolvedOptions().era).assertEqual('short');
        expect(datefmt.resolvedOptions().month).assertEqual('long');
        expect(datefmt.resolvedOptions().day).assertEqual('numeric');
        expect(datefmt.resolvedOptions().minute).assertEqual('2-digit');
        expect(datefmt.resolvedOptions().second).assertEqual('numeric');
        expect(datefmt.resolvedOptions().dayPeriod).assertEqual('short');
        expect(datefmt.resolvedOptions().formatMatcher).assertEqual('basic');
        expect(datefmt.resolvedOptions().localeMatcher).assertEqual('lookup');
    })

    console.log('*************end DateTimeFormatInIntlTest*************');
})}
